<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/19 0019
 * Time: 10:31
 */

namespace frontend\controllers;

use Yii;
use yii\web\Controller;
/**
 * User controller
 */
class CeshiController extends Controller
{
    public function beforeAction($action)
    {
        if ($action->id == 'index' ) {
            $this->enableCsrfValidation = false;
        }
        return parent::beforeAction($action);
    }
    public function actionIndex()
    {
        $testObject = Yii::createObject([
            'class' => 'frontend\component\Test',
            'name' => 'new test name',
        ], [20]);

        print_r($testObject);
    }
}